package com.miya.demo.model.dto.system;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 角色dto
 *
 * @author Caixiaowei
 * @date 2022/08/18
 */
@Data
public class RoleAddOrUpdateDTO implements Serializable {
    private static final long serialVersionUID = 4708991142082118575L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("角色名称")
    @NotNull(message = "角色名称不能为空")
    private String roleName;

    @ApiModelProperty("角色描述")
    private String remark;

    @ApiModelProperty("角色资源")
    private List<Long> menuIds;

}
